<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    let p1 = new Promise((resolve => {
        // resolve()
        setTimeout(resolve,1000)
    }))
    let p2 = p1.then()
    console.log(p1)
    console.log(p2)
</script>
</body>
</html>